package com.qidian.mes.pojo;


public class TemplateProduct {

    private Long recordId;//检测模板检测项id
    private Long templateId;//检测模版id
    private Long itemId;//产品id
    private String itemCode;//产品编码
    private String itemName;//产品名称
    private String specification;//规格型号
    private Integer quantityCheck;//最低检测数

    private String unitMeasure;//单位
    private Integer quantityUnqualified;//最大不合格数
    private Double crRate;//允许的致命缺陷率，单位为%

    private Double majRate;//允许的严重缺陷率，单位为%
    private Double minRate;//允许的轻微缺陷率，单位为%

    private String productRemark;//备注

    public TemplateProduct() {
    }

    public TemplateProduct(Long recordId, Long templateId, Long itemId, String itemCode, String itemName, String specification, Integer quantityCheck, String unitMeasure, Integer quantityUnqualified, Double crRate, Double majRate, Double minRate, String productRemark) {
        this.recordId = recordId;
        this.templateId = templateId;
        this.itemId = itemId;
        this.itemCode = itemCode;
        this.itemName = itemName;
        this.specification = specification;
        this.quantityCheck = quantityCheck;
        this.unitMeasure = unitMeasure;
        this.quantityUnqualified = quantityUnqualified;
        this.crRate = crRate;
        this.majRate = majRate;
        this.minRate = minRate;
        this.productRemark = productRemark;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Integer getQuantityCheck() {
        return quantityCheck;
    }

    public void setQuantityCheck(Integer quantityCheck) {
        this.quantityCheck = quantityCheck;
    }

    public String getUnitMeasure() {
        return unitMeasure;
    }

    public void setUnitMeasure(String unitMeasure) {
        this.unitMeasure = unitMeasure;
    }

    public Integer getQuantityUnqualified() {
        return quantityUnqualified;
    }

    public void setQuantityUnqualified(Integer quantityUnqualified) {
        this.quantityUnqualified = quantityUnqualified;
    }

    public Double getCrRate() {
        return crRate;
    }

    public void setCrRate(Double crRate) {
        this.crRate = crRate;
    }

    public Double getMajRate() {
        return majRate;
    }

    public void setMajRate(Double majRate) {
        this.majRate = majRate;
    }

    public Double getMinRate() {
        return minRate;
    }

    public void setMinRate(Double minRate) {
        this.minRate = minRate;
    }

    public String getProductRemark() {
        return productRemark;
    }

    public void setProductRemark(String productRemark) {
        this.productRemark = productRemark;
    }


    @Override
    public String toString() {
        return "TemplateProduct{" +
                "recordId=" + recordId +
                ", templateId=" + templateId +
                ", itemId=" + itemId +
                ", itemCode='" + itemCode + '\'' +
                ", itemName='" + itemName + '\'' +
                ", specification='" + specification + '\'' +
                ", quantityCheck=" + quantityCheck +
                ", unitMeasure='" + unitMeasure + '\'' +
                ", quantityUnqualified=" + quantityUnqualified +
                ", crRate=" + crRate +
                ", majRate=" + majRate +
                ", minRate=" + minRate +
                ", productRemark='" + productRemark + '\'' +
                '}';
    }
}
